﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CellContract.aspx.cs" Inherits="Contract_CellContract" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>基站合同查询</title>
    <script type="text/javascript" src="../Scripts/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.9.2.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.bgiframe.js"></script> 
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script> 
    <link rel="Stylesheet" href="../Content/redmond/jquery-ui-1.9.2.custom.min.css" />
    <link rel="stylesheet" href="../Content/SysManage.css" type="text/css" />  
    <script type="text/javascript" src="../Scripts/Contract/CellContract.js"></script> 
</head>
<body>
    <form id="form1" runat="server">
   <div class="ContentDiv">
        <p>
                <label for="Dep_A" class="lTitle">
                    县分：</label>
                <asp:DropDownList ID="Dep_A" runat="server" Enabled="false">
                </asp:DropDownList>
                <label for="Cell_CHName_A" class="lTitle" style="margin-left:85px">
                    基站:</label>
                <asp:TextBox ID="Cell_CHName_A" runat="server" MaxLength="50" CssClass="text ui-widget-content"></asp:TextBox>
                <label style="font-size:small; color:Red">*模糊查找</label> 
                <asp:Button ID="Query_Contract" runat="server" Text="查询" OnClick="QueryContract_Click" CssClass="BtnLeft" />                
                <asp:Button ID="AddContract" runat="server" CssClass="BtnLeft" Text="新增合同" OnClick="AddContract_Click" /> 
            </p>
            <asp:GridView ID="ContractList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" OnRowCommand="Contract_RowCommand">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="Contract_No" HeaderText="合同编号" SortExpression="Contract_No"
                        ReadOnly="True"></asp:BoundField>
                    <asp:BoundField DataField="Cell_CHName" HeaderText="基站" SortExpression="Cell_CHName" />
                    <asp:BoundField DataField="Cell_Type" HeaderText="基站类型" SortExpression="Cell_Type" />
                    <asp:BoundField DataField="Other_Name" HeaderText="对方名称" SortExpression="Other_Name">
                    </asp:BoundField>
                    <asp:BoundField DataField="Begin_Date" HeaderText="起始日期" SortExpression="Begin_Date" />
                    <asp:BoundField DataField="End_Date" HeaderText="终止日期" SortExpression="EndDate" />
                    <asp:BoundField DataField="Pay_Date" HeaderText="付款日期" SortExpression="Pay_Date" />
                    <asp:BoundField DataField="Status" HeaderText="状态" SortExpression="Status" />
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:Button ID="ShowDetail" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="查看" CommandName="Show" CommandArgument='<%# Bind("Contract_No")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all"/>
                            <asp:Button ID="ModifyContract_G" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="编辑" CommandName="ModifyContract" 
                                CommandArgument='<%# Bind("Contract_No")%>' CssClass="ui-button ui-state-default ui-corner-all"/>                            
                             <asp:Button ID="DeleteContract_G" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="删除" CommandName="DeleteContract" 
                                CommandArgument='<%# Bind("Contract_No")%>' CssClass="ui-button ui-state-default ui-corner-all" 
                                OnClientClick="return confirm('确认要删除该合同吗？');"/> 
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="ContractPager" runat="server" OnPageChanged="ContractPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
   </div> 
   <div id="ContractDiv" class="DialogDiv">
        <div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;" id="MsgDiv"> 
	            <p style="padding:4px 2px;"><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span> 
	            <strong>提示:</strong><label id="JQmsg" runat="server" style="color:Red;"></label></p>
            </div>     
        <fieldset>
                <p>
                    <label for="Contract_No">
                        合同编号:</label>
                    <asp:TextBox ID="Contract_No" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="64"></asp:TextBox></p>
                <p>
                    <label for="Cell_CHName">
                        基站:</label>
                    <asp:TextBox ID="Cell_CHName" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="50"></asp:TextBox></p>
                <p>
                    <label for="Cell_Type">
                        基站类型:</label>
                    <asp:DropDownList runat="server" ID="Cell_Type" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">宏基站</asp:ListItem>
                        <asp:ListItem>微基站</asp:ListItem>
                        <asp:ListItem>接入网</asp:ListItem>
                    </asp:DropDownList></p>
                <p>
                    <label for="Other_Name">
                        对方名称:</label>
                    <asp:TextBox runat="server" ID="Other_Name" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="32"></asp:TextBox>
                </p>
               <p>
                    <label for="Begin_Date">
                        起始日期:</label>
                    <asp:TextBox runat="server" ID="Begin_Date" CssClass="Wdate text ui-widget-content ui-corner-all"
                     AutoCompleteType="Disabled"></asp:TextBox>
                </p>
               <p>
                    <label for="End_Date">
                        终止日期:</label>
                    <asp:TextBox runat="server" ID="End_Date" CssClass="Wdate text ui-widget-content ui-corner-all"
                     AutoCompleteType="Disabled"></asp:TextBox>
                </p>  
               <p>
                    <label for="Contract_Value">
                        合同金额:</label>
                    <asp:TextBox runat="server" ID="Contract_Value" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="16" ></asp:TextBox>
                </p>  
               <p>
                    <label for="Pay_Mode">
                        付款方式:</label>
                    <asp:DropDownList runat="server" ID="Pay_Mode" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">现金</asp:ListItem>
                        <asp:ListItem>转账</asp:ListItem>
                    </asp:DropDownList></p> 
                <p>
                    <label for="Contact_Info">
                        联系方式:</label>
                    <asp:TextBox runat="server" ID="Contact_Info" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="32" ></asp:TextBox>
                </p> 
                <p>
                    <label for="Account_Name">
                        账户户名:</label>
                    <asp:TextBox runat="server" ID="Account_Name" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="10" ></asp:TextBox>
                </p> 
                <p>
                    <label for="Open_Bank">
                        开户行:</label>
                    <asp:TextBox runat="server" ID="Open_Bank" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="32" ></asp:TextBox>
                </p> 
                <p>
                    <label for="Account_No">
                        账号:</label>
                    <asp:TextBox runat="server" ID="Account_No" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="32" ></asp:TextBox>
                </p>   
                <p>
                    <label for="Remark">
                        备注:</label>
                    <asp:TextBox runat="server" ID="Remark" CssClass="text ui-widget-content ui-corner-all"
                        TextMode="MultiLine" Rows="4" Columns="13"></asp:TextBox>
                </p>   
            </fieldset>
            <p class="ActionP">
                <asp:Button ID="BtnCreate" runat="server" Text="新增" OnClick="BtnCreate_Click" />
                <asp:Button ID="BtnModify" runat="server" Text="修改" OnClick="BtnModify_Click" Visible="false" /> 
                <input id="BtnCancel" type="button" value="取消" /></p>
    </div>
        <asp:Literal ID="C_No" runat="server" Visible="false"></asp:Literal>
    </form>
</body>
</html>
